package com.blog.attach.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.attach.entity.UserCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 苏离
 * @since 2022-01-15
 */
public interface UserCollectionMapper extends BaseMapper<UserCollection> {

    List<Integer> getArticleIdByUserId(@Param("userId") String userId,
                                       @Param("pageSize") Integer pageSize,
                                       @Param("limit") Integer limit);
    Integer getArticleCount(String userId);
}
